package com.itheima.mapper;

import com.itheima.domain.KsClass;
import com.itheima.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LoginMapper {
    /**
     * 根据用户名查询用户
     */
    User selectUserByMobile(@Param("mobile") String mobile);

    /**
     * 查询所有班级
     */
    List<KsClass> seletAllClass();

    /**
     *根据用户名和密码查询用户
     */
    User selectUserByMobileAndPassword(User user);
}
